﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace Model
{
    [DataContract]
    public class Movie
    {
        [DataMember]
        private string serialNo;
        [DataMember]
        private string length;
        [DataMember]
        private string title;
        [DataMember]
        private string genre;
        [DataMember]
        private DateTime releaseDate;
        [DataMember]
        private double ranking;
        [DataMember]
        private Review review;



        public Movie(string serialNo, string length, string title, string genre, DateTime releaseDate, double ranking)
        {
            this.serialNo = serialNo;
            this.length = length;
            this.title = title;
            this.genre = genre;
            this.releaseDate = releaseDate;
            this.ranking = ranking;
        }
        public Movie()
        {
        }

        public Movie(string serialNo)
        {
            this.serialNo = serialNo;
        }
        
        public string SerialNo
        {
            get { return serialNo; }
            set { serialNo = value; }
        }
        public string Length
        {
            get { return length; }
            set { length = value; }
        }

        public string Title
        {
            get { return title; }
            set { title = value; }
        }

        public string Genre
        {
            get { return genre; }
            set { genre = value; }
        }

        public DateTime ReleaseDate
        {
            get { return releaseDate; }
            set { releaseDate = value; }
        }

        public double Ranking
        {
            get { return ranking; }
            set { ranking = value; }
        }
        public Review Review
        {
            get { return review; }
            set { review = value; }
        }
        public override string ToString()
        {
            return title;
        }

    }
}
